package com.demo2;

import com.demo2.util.SessionUserFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2022/5/30
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class Provider2Application {
    public static void main(String[] args) {
        SpringApplication.run(Provider2Application.class, args);
    }

    @Bean
    public SessionUserFilter sessionUserFilter(){
        return new SessionUserFilter();
    }
}
